<template>
  <div class="sona">
    <h3>{{ $store.state.msga }}</h3>
    我是sona组件
    <button @click="btnClick">我要修改sonb组件数据</button>
  </div>
</template>
<script>
export default {
  methods: {
    btnClick () {
      this.$store.state.msg = '我是sona修改的' + Math.random() * 999
    }
  }
}
</script>
<style>
.sona {
  width: 500px;
  height: 250px;
  border: 5px solid green;
}
</style>
